<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title></title>
		<style type="text/css">
			.box {
				width: 100px;
				height: 100px;
				background-color: pink;
				padding: 100px;
				margin: 100px;
				border: 123px solid #FFFF00;
			}
		</style>
	</head>
	<body>
		<div class="box"></div>
		<script type="text/javascript">
			var box = document.getElementsByTagName("div")[0];
			console.log(box.clientWidth);
			console.log(box.clientTop);
		</script>
	</body>
</html>